package com.ryskoo.common.dto.permission;

import com.ryskoo.common.dto.BasicDTO;

import java.util.List;

/**
 * 管理员DTO
 *
 * @author Shawn
 */
public class ManagerDTO extends BasicDTO {

    private static final long serialVersionUID = -2825738397760940108L;

    /**
     * 登录帐号
     */
    private String loginName;

    /**
     * 管理员姓名
     */
    private String name;

    /**
     * 管理员密码
     */
    private String password;

    /**
     * 状态
     */
    private boolean state;

    /**
     * 身份
     */
    private String identity;

    /**
     * 职位
     */
    private String position;

    /**
     * 手机号
     */
    private String mobile;

    /**
     * 邮箱
     */
    private String email;

    /**
     * QQ
     */
    private Integer qq;

    /**
     * 备注
     */
    private String description;

    /**
     * 部门
     */
    private String deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 是否超级管理员
     */
    private boolean superManager;

    /**
     * 是否重置密码，修改管理员信息时，如果重置密码，则此字段值为true，保存时将重置管理员登录密码
     */
    private boolean resetPassword = false;

    /**
     * 管理员所属权限列表
     */
    private List<RoleDTO> roleList;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean getState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getQq() {
        return qq;
    }

    public void setQq(Integer qq) {
        this.qq = qq;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public boolean isSuperManager() {
		return superManager;
	}

	public void setSuperManager(boolean superManager) {
		this.superManager = superManager;
	}

	public List<RoleDTO> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<RoleDTO> roleList) {
        this.roleList = roleList;
    }

    public boolean isResetPassword() {
        return resetPassword;
    }

    public void setResetPassword(boolean resetPassword) {
        this.resetPassword = resetPassword;
    }
}
